package cn.jlearn.proxy.common.pojo;

import cn.jlearn.proxy.common.utils.CommonThreadFactory;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * 全局常量类
 *
 * @author qianyingchao
 * @version 1.0
 * @date 2021/5/18 4:40 下午
 */
public interface Constant {

    /**
     * 专用于启动服务的线程池
     */
    ExecutorService SERVER_START_THREAD_POOL = new ThreadPoolExecutor(1, 10, 0L,
            TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(), new CommonThreadFactory("server-start"));

    /**
     * 获取隧道信息接口
     */
    String API_APP_VERSION_CHECK = "/proxy/api/open/proxy/client/version/check?version=%s";

    /**
     * 获取隧道信息接口
     */
    String API_GET_CHANNEL_INFO = "/proxy/api/open/proxy/client/tunnel/%s";

}
